#pragma once

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

typedef int SLDataType;
#define INTI_SIZE 4

typedef struct SeqList
{
	SLDataType* a;
	int sz;
	int capacity;
}SeqList;

void SeqListInti(SeqList* ps);

void SeqListDestroy(SeqList* ps);

void SeqListPushBack(SeqList* ps,SLDataType k);

void SeqListShow(const SeqList* ps);

void SeqListPopBack(SeqList* ps, SLDataType k);

void SeqListPushFront(SeqList* ps, SLDataType k);

void SeqListPopFront(SeqList* ps, SLDataType k);

int SeqListFind(const SeqList* ps, SLDataType x);

void SeqListInsert(SeqList* ps, int pos, SLDataType x);

void SeqListErase(SeqList* ps, int pos);
